/**
 * Copyright (C) 2011 Domenico Briganti <dometec@gmail.com>
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *         http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package it.webrules.deploymanager.webapp.utils;

import java.io.OutputStream;
import java.io.PrintWriter;

public class FlushedPrintWriter extends PrintWriter {

	public FlushedPrintWriter(OutputStream out) {
		super(out, true);
	}

	@Override
	public void print(boolean b) {
		super.print(b);
		flush();
	}

	@Override
	public void print(char c) {
		super.print(c);
		flush();
	}

	@Override
	public void print(char[] s) {
		super.print(s);
		flush();
	}

	@Override
	public void print(double d) {
		super.print(d);
		flush();
	}

	@Override
	public void print(float f) {
		super.print(f);
		flush();
	}

	@Override
	public void print(int i) {
		super.print(i);
		flush();
	}

	@Override
	public void print(long l) {
		super.print(l);
		flush();
	}

	@Override
	public void print(Object obj) {
		super.print(obj);
		flush();
	}

	@Override
	public void print(String s) {
		super.print(s);
		flush();
	}

	@Override
	public void println() {
		super.println();
		flush();
	}

	@Override
	public void println(boolean x) {
		super.println(x);
		flush();
	}

	@Override
	public void println(char x) {
		super.println(x);
		flush();
	}

	@Override
	public void println(char[] x) {
		super.println(x);
		flush();
	}

	@Override
	public void println(double x) {
		super.println(x);
		flush();
	}

	@Override
	public void println(float x) {
		super.println(x);
		flush();
	}

	@Override
	public void println(int x) {
		super.println(x);
		flush();
	}

	@Override
	public void println(long x) {
		super.println(x);
		flush();
	}

	@Override
	public void println(Object x) {
		super.println(x);
		flush();
	}

	@Override
	public void println(String x) {
		super.println(x);
		flush();
	}

}
